package com.ruoyi.kong.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.kong.bean.StepBeanData;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 命令步骤对象 k_step
 * 
 * @author zeroUp
 * @date 2024-06-20
 */
public class KStep extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long gid;

    /** 所属命令集 */
    private Long cmdSetGid;

    /** 步骤名称 */
    @Excel(name = "步骤名称")
    private String controlName;

    /** 执行的类名称 */
    @Excel(name = "执行的类名称")
    private String executeClassName;

    /** 步骤号 */
    @Excel(name = "步骤号")
    private Long step;

    /** 延迟 */
    @Excel(name = "延迟")
    private Long delay;

    /** 父节点 */
    private Long parentGid;

    /** 业务数据json */
    @Excel(name = "业务数据json")
    private String stepServiceData;

    private StepBeanData stepServiceDataObj;

    /** $column.columnComment */
    private Date createrTime;

    /** $column.columnComment */
    private String createrBy;

    public void setGid(Long gid) 
    {
        this.gid = gid;
    }

    public Long getGid() 
    {
        return gid;
    }
    public void setCmdSetGid(Long cmdSetGid) 
    {
        this.cmdSetGid = cmdSetGid;
    }

    public Long getCmdSetGid() 
    {
        return cmdSetGid;
    }
    public void setControlName(String controlName) 
    {
        this.controlName = controlName;
    }

    public String getControlName() 
    {
        return controlName;
    }
    public void setExecuteClassName(String executeClassName) 
    {
        this.executeClassName = executeClassName;
    }

    public String getExecuteClassName() 
    {
        return executeClassName;
    }
    public void setStep(Long step) 
    {
        this.step = step;
    }

    public Long getStep() 
    {
        return step;
    }
    public void setDelay(Long delay) 
    {
        this.delay = delay;
    }

    public Long getDelay() 
    {
        return delay;
    }
    public void setParentGid(Long parentGid) 
    {
        this.parentGid = parentGid;
    }

    public Long getParentGid() 
    {
        return parentGid;
    }
    public void setStepServiceData(String stepServiceData) 
    {
        this.stepServiceData = stepServiceData;
    }

    public String getStepServiceData() 
    {
        return stepServiceData;
    }
    public void setCreaterTime(Date createrTime) 
    {
        this.createrTime = createrTime;
    }

    public Date getCreaterTime() 
    {
        return createrTime;
    }
    public void setCreaterBy(String createrBy) 
    {
        this.createrBy = createrBy;
    }

    public String getCreaterBy() 
    {
        return createrBy;
    }

    public StepBeanData getStepServiceDataObj() {
        return stepServiceDataObj;
    }

    public void setStepServiceDataObj(StepBeanData stepServiceDataObj) {
        this.stepServiceDataObj = stepServiceDataObj;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("gid", getGid())
            .append("cmdSetGid", getCmdSetGid())
            .append("controlName", getControlName())
            .append("executeClassName", getExecuteClassName())
            .append("step", getStep())
            .append("delay", getDelay())
            .append("parentGid", getParentGid())
            .append("stepServiceData", getStepServiceData())
            .append("createrTime", getCreaterTime())
            .append("createrBy", getCreaterBy())
            .toString();
    }
}
